package com.yanlin.servicemap.contoller;

import com.yanlin.internalcommon.dto.ResponseResult;
import com.yanlin.servicemap.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>标题：DistrictController</p>
 * <p>功能：行政区域</p>
 * <p>
 * 其他说明：
 * </p>
 * <p>审核：</p>
 * <p>重构：</p>
 * <p>创建日期：2025-06-11 11:21</p>
 *
 * @author yanlin
 */
@RestController
@RequestMapping("/config")
public class DicDistrictController {

    @Autowired
    private DistrictService districtService;

    @GetMapping("/district")
    public ResponseResult initDisctrict( String keywords) {
        System.out.println("keywords = " + keywords);

        return districtService.initDistrict(keywords);
    }
}